#include "head.h"


// 把指定文件描述符放入监听
int addEpoll(int epfd, int filefd){

    struct epoll_event event;
    event.events = EPOLLIN;
    event.data.fd = filefd;
    epoll_ctl(epfd, EPOLL_CTL_ADD, filefd, &event);

    return 0;
}

